package com.sinbader.xiaole.common.mapper;

import com.sinbader.xiaole.common.entity.ProductCategory;
import com.sinbader.xiaole.common.model.params.ProductCategoryParam;
import com.sinbader.xiaole.common.model.result.ProductCategoryResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author JingJing
 * @since 2020-04-17
 */
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {

    /**
     * 获取列表
     *
     * @author JingJing
     * @Date 2020-04-17
     */
    List<ProductCategoryResult> customList(@Param("paramCondition") ProductCategoryParam paramCondition);

    /**
     * 获取map列表
     *
     * @author JingJing
     * @Date 2020-04-17
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ProductCategoryParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author JingJing
     * @Date 2020-04-17
     */
    Page<ProductCategoryResult> customPageList(@Param("page") Page page, @Param("paramCondition") ProductCategoryParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author JingJing
     * @Date 2020-04-17
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ProductCategoryParam paramCondition);

}
